<%@page import="com.shsh.safemanage.util.Util"%>
<%@page import="com.shsh.safemanage.action.ActionCreator"%>
<%@page import="com.shsh.safemanage.action.BrowseProblemAction"%>
<%@page import="com.shsh.safemanage.model.Problem"%>
<%@page import="java.util.List"%>
<%@page import="com.shsh.safemanage.dao.DaoCreator"%>
<%@page import="com.shsh.safemanage.dao.ProblemDao"%>
<%@ page language="java" pageEncoding="UTF-8"%>

<%
{
BrowseProblemAction browseAction = ActionCreator.createBrowseProblemAction();
List<Problem> problemList = browseAction.browseProblems(request);
%>
<table width="100%">
	<tr style="font-weight: bold" align="center">
		<td class="td1" width="20%">作业部（业务中心）</td>
		<td class="td1" width="20%">装置</td>
		<td class="td1" width="20%">问题标题</td>
		<td class="td1" width="6%">发现人</td>
		<td class="td1" width="12%">填报日期</td>
		<td class="td1" width="12%">回复日期</td>
		<td class="td1" width="10%">查看</td>
	</tr>
	<%
	for (Problem problem : problemList) {
	%>
	<tr>
		<td><%=problem.getDepartment1Name()%></td>
		<td><%=problem.getEquipmentName()%></td>
		<td><%=problem.getProblemTitle()%></td>
		<td align="center"><%=problem.getWriteUserName()%></td>
		<td align="center"><%=Util.formatDate(problem.getWriteTime().getTime())%></td>
		<td align="center"><%=(problem.getCloseTime() == null)? "" : Util.formatDate(problem.getCloseTime().getTime())%></td>
		<td align="center">
			<a href="javascript:" onclick="loadPageSection('/safe_manage/problem_detail.jsp', 'mainContentDiv', {id:<%=problem.getId()%>})">详细内容</a></td>
	</tr>
	<%
	}
	%>
</table>
<%
}
%>